package com.shujunjun.project.strategy.junjun;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @author wsh
 * @since 2024/3/17 9:36
 */
@Service
@RequiredArgsConstructor
public class PlayServiceImpl implements IJunJunService {
    final JunJunFactory junJunFactory;
    @Override
    public void doSomething(String name) {
        System.out.println("调用了play方法 === " + name);
    }

    @Override
    public void afterPropertiesSet() {
        junJunFactory.register("play", this);
    }
}
